<style>
    #dept-edit .layui-form-label{
        width: 90px;
    }
    #dept-edit .layui-input-block{
        margin-left: 120px;
    }
</style>
<div class="febs-container" id="dept-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="dept-edit-form">
            <div class="layui-form-item febs-hide">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">机构ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptId" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">上级机构ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="pid" autocomplete="off" class="layui-input"
                               maxlength="32" >
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label">上级机构：</label>
                    <div class="layui-input-block">
                        <input type="text" id="parentId" name="parentId" autocomplete="off" class="layui-input"
                               maxlength="90"  lay-filter="parentId">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">机构名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptName" autocomplete="off" class="layui-input"
                               maxlength="90" placeholder="请输入机构名称">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">机构编号：</label>
                    <div class="layui-input-block">
                        <input type="text" name="deptCode" lay-filter="dept-type" class="layui-input" placeholder="请输入机构编号">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">机构类型：</label>
                    <div class="layui-input-block">
                        <input type="radio" name="deptType" title="本部" value="1" checked>
                        <input type="radio" name="deptType" title="部门" value="2">
                        <input type="radio" name="deptType" title="科室" value="3">
                        <input type="radio" name="deptType" title="职场" value="4">
                        <input type="radio" name="deptType" title="班组" value="5">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">业务编码：</label>
                    <div class="layui-input-block">
                        <input type="text" name="businessCode" autocomplete="off" class="layui-input"
                               maxlength="2" placeholder="请输业务编码，该值影响业务模块编号生成格式">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label ">机构排序：</label>
                    <div class="layui-input-block">
                        <input type="text" name="orderNum" autocomplete="off" class="layui-input"
                               maxlength="4" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="请输入机构排序">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">机构状态：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" checked>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="dept-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var deptData = [[${dept}]];
</script>
<script th:src="@{/febs/js/system/dept/deptEdit.js(v=1)}"></script>